import request from '@/utils/request'

// /dev-api/system/sign/list 查询
export function listsignList(query) {
  return request({
    url: '/system/sign/list',
    method: 'get',
    params: query
  })
}

// 获取 /dev-api/system/sign/{signId}
export function getsign(signId) {
  return request({
    url: '/system/sign/' + signId,
    method: 'get'
  })
}

// 新增/dev-api/system/sign
export function addsign(data,type) {
  return request({
    url: '/system/sign',
    method: 'post',
    isShow:type,
    data: data
  })
}

//修改dev-api/system/sign
export function updatesign(data) {
  return request({
    url: '/system/sign',
    method: 'put',
    data: data
  })
}

// 删除/dev-api/system/sign/{signIds}
export function delsign(signIds) {
  return request({
    url: '/system/sign/' + signIds,
    method: 'delete'
  })
}
///dev-api/system/sign/todayTreatment 今日治疗
export function todayTreatment(query) {
    return request({
      url: '/system/sign/todayTreatment',
      method: 'get',
      params: query
    })
  }
  ///dev-api/system/sign/todayTreatmentByName 每种治疗项目下的今日治疗
  export function todayTreatmentByName(query) {
    return request({
      url: '/system/sign/todayTreatmentByName',
      method: 'get',
      params: query
    })
  }
  ///dev-api/system/sign/list 查询治疗项目签到列表
  export function signList(query) {
    return request({
      url: '/system/sign/list',
      method: 'get',
      params: query
    })
  }